package com.qfjy.homework.Liwei;

/**
 * @author : 李伟
 * @version : 1.0
 * @date : 2022/6/29 18:54
 */
public class MediatorPatternDemo {
    public static void main(String[] args) {

        User  a= new User("小三");
        User b = new User("小四");

        a.sendMessage("Hi! 小四!");
        b.sendMessage("Hello! 小三!");

    }
}
